#include "WProgram.h"
#include "Improbable.h"
#define HMC6352_ADD 0x42
#define HMC6352_PIN1 16
#define HMC6352_PIN2 17
#define HMC6352_SMOOTH_SAMPLE 10
#define GPS_ADD 0x68
#define SERVO_RUDDER_DIRECTION -1
#define SERVO_RUDDER_PIN 2
#define SERVO_RUDDER_NEUTRAL 83
#define SERVO_RUDDER_RANGE 30


Improbable::Improbable()
{
  _hmc6352=HMC6352(HMC6352_ADD, HMC6352_SMOOTH_SAMPLE, HMC6352_PIN1, HMC6352_PIN2);
  _gps=GPS(GPS_ADD);
  _rudder=ServoRudder(SERVO_RUDDER_PIN, SERVO_RUDDER_NEUTRAL, SERVO_RUDDER_RANGE, SERVO_RUDDER_DIRECTION);
}
